package com.scj.vue3springboot.constant;

/**
 * @Class JwtConstant
 * @Author ShiChaojie
 * @Email:scj0725@qq.com
 */

public class JwtConstant {

    /**
     * 验证通过
     */
    public static final int JWT_ERRCODE_SUCCESS = 0;

    /**
     * Token不存在
     */
    public static final int JWT_ERRCODE_NULL = 4000;

    /**
     * Token过期
     */
    public static final int JWT_ERRCODE_EXPIRE = 4001;

    /**
     * 验证不通过
     */
    public static final int JWT_ERRCODE_FAIL = 4002;

    /**
     * jwt密匙
     */
    public static final String JWT_SECERT = "f4e2e52034348f86b67cde581c0f9eb5";

    /**
     * 有效时间 1天
     */
    public static final long JWT_TTL = 24 * 60 * 60 * 1000;

}
